<?php
use think\facade\Route;
/**
 * @model diy
 * @author yangqi
 * @create time 2019年11月25日23:09:59
 * 
 */
 
Route::group('admin' ,function() {
    //自定义
    Route::group('DIY', function () {
        Route::get('list', 'DiyController/list');
        Route::post('initOne', 'DiyController/initOne');
        Route::get('getDiyData', 'DiyController/getDiyData');
        Route::post('setDiyData', 'DiyController/setDiyData');
        Route::post('openADiy', 'DiyController/openADiy');
        Route::post('delDiy', 'DiyController/delDiy');
        Route::get('getSystemDefaulDiy', 'DiyController/getSystemDefaulDiy');

        Route::get('getDiyColor', 'DiyController/getDiyColor');

        Route::any('saveDiyColor', 'DiyController/saveDiyColor');

        Route::any('useringColor', 'DiyController/useringColor');
    });
    //组件
    Route::group('components', function () {
        Route::get('list', 'ComponentsController/list');
    });
    //模块
    Route::group('Module', function () {
        Route::get('getMoudelByKey', 'ModuleController/getMoudelByKey');
        Route::get('getSortMethod', 'ModuleController/getSortMethod');
        //功能页面
        Route::any('functionPage', 'ModuleController/functionPage');

        Route::any('diyIng', 'ModuleController/diyIng');


    });
    //菜单
    Route::group('menu', function () {
        Route::get('list', 'MenuController/list');
        Route::get('getMenyListData', 'MenuController/getMenyListData');
        Route::get('getDiyData', 'MenuController/getDiyData');
    });
});
//应用
Route::group('app', function () {
    Route::get('getDiyData' , 'WxAppDiyController/getDiyData');
    Route::get('getWorkCenterMenu' , 'WxAppDiyController/getWorkCenterMenu');

});


//自定义
Route::get('list', 'DiyController/list');
Route::post('initOne', 'DiyController/initOne');
Route::get('getDiyData', 'DiyController/getDiyData');
Route::post('setDiyData', 'DiyController/setDiyData');
Route::post('openADiy', 'DiyController/openADiy');
Route::post('delDiy', 'DiyController/delDiy');
Route::get('getSystemDefaulDiy', 'DiyController/getSystemDefaulDiy');

//组件
Route::get('list', 'ComponentsController/list');
//模块
Route::get('getMoudelByKey', 'ModuleController/getMoudelByKey');
Route::get('getSortMethod', 'ModuleController/getSortMethod');
//功能页面
Route::any('funtionPage', 'ModuleController/funtionPage');


Route::get('wxAppDIY/getDiyData' , 'WxAppDiyController/getDiyData');
